class Student(object):
    def __init__(self, name, gender):
        self.name = name
        self.gender = gender

    # 实例方法
    def setSubject(self, name, score):
        self.subject = Subject(name, score)


# 创建一个科目的类
class Subject(object):
    def __init__(self, name, score):
        self.name = name
        self.score = score
